<?php
	$obj=new Post();
	$obj->loadByKey($id);
	$menu =new Menu();
	$path=$menu->getListtoRoot($menuid);
	$path=arrswap($path);
	if($obj->Source!="")
	{
		$filename = "file/news/news".$obj->PostID.".txt";
		$handle = fopen($filename, "r");
		$obj->Detail = fread($handle, filesize($filename));
		fclose($handle);
	}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
					  <tr>
					    <td><p class="news_detail_tieude"><?php echo $objMenuName?></p></td>
					    </tr>
					  <tr>
					    <td>&nbsp;</td>
					    </tr>
					  <tr>
					    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
					      <tr>
					        <td>
                            	<label><?php echo $obj->Title?></label>
            					<div class="line_title"><img src="images/ico_line.jpg" /></div>
                                
					         		<?php echo $obj->Detail?>
                                    <br />
					              	<strong>Các câu hỏi khác:</strong>
                                    <div class="line_title"><img src="images/ico_line.jpg" /></div>
					              </td>
					        </tr>
					      <tr>
					        <td>&nbsp;</td>
					        </tr>
					      <tr>
					        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
					          
					          <tr>
					            <td>
<?php
	//$data = $obj->getTable(" WHERE `post`.`LastUpdate` < '".$obj->LastUpdate."' AND Detail <> '' AND NewsTypeID ='".$menuid."'  ORDER BY `post`.`LastUpdate` DESC LIMIT 0 , 10");
	$data = $obj->getTable(" WHERE `post`.`PostID` <> '".$obj->PostID."' AND NewsTypeID ='".$menuid."'  ORDER BY `post`.`LastUpdate` DESC ");
	
?>
<?php
	foreach($data as $item)
	{
?>
                    &bull; <a href="?menu=<?php echo $menuid?>&type=detail&id=<?php echo $item['PostID']?>" class="main"><?php echo $item['Title']?></a> <br>

<?php
	}
?>
                               	  </td>
					            </tr>
					          </table></td>
					        </tr>
					      </table></td>
					    </tr>
					  </table>



           

